package com.wangx1n.bean;

/**
 * @author WangXin
 * @date 2020/12/2 17:35
 * 员工类
 */
public class Emp {
    private String ename;
    private String gender;

    //员工属于某个部门
    Dept dept;


    public void setDept(Dept dept) {
        this.dept = dept;
    }



    public Dept getDept() {
        return dept;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public void print(){
        dept.print();
        System.out.println("员工姓名："+ename +"   性别："+gender);
    }


}
